summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-05-06 13:58:41 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-05-06 13:58:41 +0100
commit0a4641a712152e2fc36e24324c1528d2807a8c7a (patch)
tree03d0281a9ab54c1998a4dd84faa5ba8addec50d6 /vimrc
parent02b921b4d7d897e4bbe71a83975c8f564c31d7fc (diff)
added spell file
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc18
1 files changed, 12 insertions, 6 deletions
diff --git a/vimrc b/vimrc
index a760deb..578e780 100644
--- a/vimrc
+++ b/vimrc
@@ -31,7 +31,6 @@ Plugin 'tpope/vim-scriptease'
Plugin 'tpope/vim-sensible'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-unimpaired'
-
filetype plugin indent on
syntax on
@@ -134,6 +133,7 @@ set guifont=Monaco\ 11
" Case and spell
set nospell
+set spellfile="/home/urbain/.vim/spell/en.utf-8.add"
set smartcase
set ignorecase
@@ -160,6 +160,11 @@ nnoremap <Leader>pe :tabedit
nnoremap <Leader>pn :tabnew<cr>
nnoremap <Leader>po :tabonly<cr>
+" Plugin Management
+nnoremap <Leader>pi :PluginInstall<cr>
+nnoremap <Leader>pu :PluginUpdate<cr>
+nnoremap <Leader>pc :PluginClean<cr>
+
" Toggles
nnoremap <Leader>tb :let &background = ( &background == "dark"? "light" : "dark" )<CR>
nnoremap <Leader>tg :GitGutterToggle<cr>
@@ -168,6 +173,7 @@ nnoremap <Leader>tl :set list!<cr>
nnoremap <Leader>tn :set number!<cr>
nnoremap <Leader>tp :set paste!<cr>
nnoremap <Leader>tr :set relativenumber!<cr>
+nnoremap <Leader>ts :set spell!<cr>
nnoremap <Leader>tt :NERDTreeToggle<cr>
nnoremap <Leader>tu :GundoToggle<cr>
@@ -175,11 +181,6 @@ nnoremap <Leader>tu :GundoToggle<cr>
nnoremap <Leader>sv :source ~/.vimrc<cr>
nnoremap <Leader>sc :source %<cr>
-" Plugin Management
-nnoremap <Leader>pi :PluginInstall<cr>
-nnoremap <Leader>pu :PluginUpdate<cr>
-nnoremap <Leader>pc :PluginClean<cr>
-
" File edits
nnoremap <Leader>es :UltiSnipsEdit<cr>
nnoremap <Leader>ev :e ~/.vimrc<cr>
@@ -196,6 +197,11 @@ nnoremap <c-e> 3<c-e>
nnoremap <Return> o<Esc>
nnoremap <s-Return> O<Esc>
+" Git
+nnoremap <Leader>gs :Gstatus<cr>
+nnoremap <Leader>gr :Gread<cr>
+nnoremap <Leader>gd :Gdiff<cr>
+
" Misc
nnoremap <tab> <C-^>
nnoremap Q :bd!<cr>