Commits

Gabriel AHTUNE  committed 3cfe111

remove cursorline and cursorcolumn as it slow down vim display

  • Participants
  • Parent commits 4a6a7a2

Comments (0)

Files changed (1)

 set showcmd
 set ttyfast
 set ttymouse=xterm
-set cursorline cursorcolumn
 
 " remove ESC delay in no gui env
 set ttimeout
 " Better window split 
 nnoremap <C-w>v <C-w>v<C-w>l
 nnoremap <C-w>s <C-w>s<C-w>j
-nnoremap <C-h> <C-w>h
-nnoremap <C-j> <C-w>j
-nnoremap <C-k> <C-w>k
-nnoremap <C-l> <C-w>l
 
 " Shortcuts for jumps
 nnoremap <M-j> :jumps<CR>
 "set ofu=syntaxcomplete#Complete
 set completeopt+=longest,menu
 inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
-"inoremap <expr> <c-n> pumvisible() ? "\<lt>c-n>" : "\<lt>c-n>\<lt>c-r>=pumvisible() ? \"\\<lt>down>\" : \"\"\<lt>cr>"
-
 inoremap <expr> <C-n> pumvisible() ? '<C-n>' :
   \ '<C-n><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
 
 " Ignore space
 set diffopt+=iwhite
 
+" Spell check
+let b:myLang=0
+let g:myLangList=["nospell","en","fr"]
+function! ToggleSpell()
+    let b:myLang=b:myLang+1
+    if b:myLang>=len(g:myLangList) | let b:myLang=0 | endif
+    if b:myLang==0
+        setlocal nospell
+    else
+        execute "setlocal spell spelllang=".get(g:myLangList, b:myLang)
+    endif
+    echo "spell checking language:" g:myLangList[b:myLang]
+endfunction
+
+nmap <silent> <F7> :call ToggleSpell()<CR>
+
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Python
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Opted
 let g:opted_dir = '~/.opted/v003'
 
-
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Configurationless plugins
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""