vimrc: Improved command definitions
Using the trailing '!' means that the file can be sourced without issue. The comments were also switched to use a more imperative style.
This commit is contained in:
parent
ed50ab1a18
commit
ae995b87d6
24
vimrc
24
vimrc
@ -11,23 +11,23 @@ set nocompatible
|
|||||||
|
|
||||||
"{- COMMANDS -}"
|
"{- COMMANDS -}"
|
||||||
|
|
||||||
" Removes blank lines "
|
" Remove blank lines "
|
||||||
command RemoveBlankLines :g/^\s*$/d
|
command! RemoveBlankLines :g/^\s*$/d
|
||||||
|
|
||||||
" Removes trailing whitespace "
|
" Remove trailing whitespace "
|
||||||
command RemoveTrailingWhitespace :%s/\s\+$//
|
command! RemoveTrailingWhitespace :%s/\s\+$//
|
||||||
|
|
||||||
" Toggles spellchecking "
|
" Toggle spellchecking "
|
||||||
command Spelling :setlocal spell! spell?
|
command! Spelling :setlocal spell! spell?
|
||||||
|
|
||||||
" Toggles invisible characters "
|
" Toggle invisible characters "
|
||||||
command ShowInvisible :setlocal list!
|
command! ShowInvisible :setlocal list!
|
||||||
|
|
||||||
" Toggles cursor crosshair "
|
" Toggle cursor crosshair "
|
||||||
command Crosshair :setlocal cursorline! cursorcolumn! ruler
|
command! Crosshair :setlocal cursorline! cursorcolumn! ruler
|
||||||
|
|
||||||
" Toggles line numbering
|
" Toggle line numbering
|
||||||
command Numbers :setlocal number! relativenumber!
|
command! Numbers :setlocal number! relativenumber!
|
||||||
|
|
||||||
|
|
||||||
"{- INTERFACE -}"
|
"{- INTERFACE -}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user