mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
Some more commenting of functionality
This commit is contained in:
17
.vimrc
17
.vimrc
@@ -71,6 +71,7 @@ Plugin 'ryanoasis/vim-devicons'
|
|||||||
" == Content convenience ======
|
" == Content convenience ======
|
||||||
|
|
||||||
" Spell Check (http://vim.wikia.com/wiki/Toggle_spellcheck_with_function_keys)
|
" Spell Check (http://vim.wikia.com/wiki/Toggle_spellcheck_with_function_keys)
|
||||||
|
" Loop through various languages to select the one to spellcheck with
|
||||||
let b:myLang=0
|
let b:myLang=0
|
||||||
let g:myLangList=["nospell","nl","en_gb","en_us"]
|
let g:myLangList=["nospell","nl","en_gb","en_us"]
|
||||||
function! ToggleSpell()
|
function! ToggleSpell()
|
||||||
@@ -87,6 +88,7 @@ function! ToggleSpell()
|
|||||||
echo "spell checking language:" g:myLangList[b:myLang]
|
echo "spell checking language:" g:myLangList[b:myLang]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Map <F7> to toggle the language with
|
||||||
nmap <silent> <F7> :call ToggleSpell()<CR>
|
nmap <silent> <F7> :call ToggleSpell()<CR>
|
||||||
|
|
||||||
" In case the spelling language was set by other means than ToggleSpell() (a filetype autocommand say):
|
" In case the spelling language was set by other means than ToggleSpell() (a filetype autocommand say):
|
||||||
@@ -98,7 +100,7 @@ if !exists( "b:myLang" )
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Word completion
|
" Word completion from dictionary (on ctrl+space)
|
||||||
set complete+=kspell
|
set complete+=kspell
|
||||||
|
|
||||||
" Python virtualenv support
|
" Python virtualenv support
|
||||||
@@ -106,6 +108,7 @@ set complete+=kspell
|
|||||||
|
|
||||||
" Python goodness
|
" Python goodness
|
||||||
"Plugin 'klen/python-mode'
|
"Plugin 'klen/python-mode'
|
||||||
|
|
||||||
" Python autocompletion
|
" Python autocompletion
|
||||||
Plugin 'davidhalter/jedi-vim'
|
Plugin 'davidhalter/jedi-vim'
|
||||||
|
|
||||||
@@ -146,18 +149,21 @@ if v:version >= 704
|
|||||||
" stuff. Works with vim >= 7.4
|
" stuff. Works with vim >= 7.4
|
||||||
Plugin 'vim-pandoc/vim-pandoc'
|
Plugin 'vim-pandoc/vim-pandoc'
|
||||||
endif
|
endif
|
||||||
" Distraction-free writing, start with <Leader>V (\V)
|
|
||||||
|
" Distraction-free writing, start with <Leader>V (\V or ,V in this config)
|
||||||
Plugin 'mikewest/vimroom'
|
Plugin 'mikewest/vimroom'
|
||||||
|
|
||||||
" undotree.vim : Display your undo history in a graph.
|
" undotree.vim : Display your undo history in a graph.
|
||||||
Plugin 'mbbill/undotree'
|
Plugin 'mbbill/undotree'
|
||||||
nnoremap <Leader>u :UndotreeToggle<CR>
|
nnoremap <Leader>u :UndotreeToggle<CR>
|
||||||
let g:undotree_SetFocusWhenToggle=1 " if undotree is opened, it is likely one
|
let g:undotree_SetFocusWhenToggle=1 " if undotree is opened, it is likely one
|
||||||
" wants to interact with it.
|
" wants to interact with it.
|
||||||
" The NERD Commenter : A plugin that allows for easy commenting of code for
|
|
||||||
|
" The NERD Commenter: A plugin that allows for easy commenting of code for
|
||||||
" many filetypes.
|
" many filetypes.
|
||||||
Plugin 'scrooloose/nerdcommenter'
|
Plugin 'scrooloose/nerdcommenter'
|
||||||
|
|
||||||
" Highlight colours in CSS files
|
" Highlight colours in CSS (and html) files
|
||||||
Plugin 'ap/vim-css-color'
|
Plugin 'ap/vim-css-color'
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
@@ -179,7 +185,7 @@ set list
|
|||||||
set dictionary+=/usr/share/dict/words
|
set dictionary+=/usr/share/dict/words
|
||||||
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k
|
" use ctrl-n ctrl-n instead of ctrl-x ctrl-k
|
||||||
set complete-=k complete+=k
|
set complete-=k complete+=k
|
||||||
" change the mapleader from \ to ,
|
" change the <Leader> key from \ to ,
|
||||||
let mapleader=","
|
let mapleader=","
|
||||||
" Quickly edit/reload the vimrc file
|
" Quickly edit/reload the vimrc file
|
||||||
nmap <silent> <leader>ev :e $MYVIMRC<CR>
|
nmap <silent> <leader>ev :e $MYVIMRC<CR>
|
||||||
@@ -193,7 +199,6 @@ set tags=./tags,./TAGS,tags;~,TAGS;~
|
|||||||
" include upper-case characters (so /foo matches FOO and fOo, but /FOO only
|
" include upper-case characters (so /foo matches FOO and fOo, but /FOO only
|
||||||
" matches the former)
|
" matches the former)
|
||||||
set ignorecase
|
set ignorecase
|
||||||
" 2006-04-24
|
|
||||||
set smartcase
|
set smartcase
|
||||||
|
|
||||||
" reload file when changes happen in other editors
|
" reload file when changes happen in other editors
|
||||||
|
|||||||
Reference in New Issue
Block a user