summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-03-31 19:09:06 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-03-31 19:09:06 +0100
commit7bacd6fa3fda49b4c130d974b326f405661d4604 (patch)
treefb776d7deb96fb9d7c98bdfa1db0497ed11b64ae /vim
parentb31904f298dd15b618302c08ab305c4099a1b581 (diff)
Added new mappings
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/tex/mappings.vim2
-rw-r--r--vim/vimrc6
2 files changed, 5 insertions, 3 deletions
diff --git a/vim/after/ftplugin/tex/mappings.vim b/vim/after/ftplugin/tex/mappings.vim
index 8b731d0..05d02dd 100644
--- a/vim/after/ftplugin/tex/mappings.vim
+++ b/vim/after/ftplugin/tex/mappings.vim
@@ -36,3 +36,5 @@ nnoremap <buffer> <LocalLeader>e :LatexErrors<CR>
nnoremap <buffer> <LocalLeader>o :LatexView<CR>
nnoremap <buffer> <LocalLeader>k :LatexmkStop<CR>:LatexmkClean<CR>
nnoremap <buffer> <LocalLeader>h :split header.sty<CR>
+
+iabbrev <buffer> dd \d
diff --git a/vim/vimrc b/vim/vimrc
index 8aff41e..2fbebf2 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -123,7 +123,7 @@ set guitablabel=%N\ %t\ %M
set showcmd
" Layout text
-set wrap
+set nowrap
set linebreak
set textwidth=0
set conceallevel=2
@@ -146,7 +146,7 @@ set encoding=utf-8
"" Colorscheme
function! UpdateColorscheme()
try | colorscheme solarized | catch | endtry
- if strftime("%H") >= 9 && strftime("%H") < 18
+ if strftime("%H") >= 8 && strftime("%H") < 20
set background=light
else
set background=dark
@@ -170,7 +170,7 @@ nnoremap <Leader>q :q!<cr>
nnoremap <Leader>h :set hlsearch!<cr>
nnoremap <Leader>n :set relativenumber!<cr>
nnoremap <Leader>sv :source ~/.vim/vimrc<cr>
-nnoremap <Leader>sc :source %
+nnoremap <Leader>sc :source %<cr>
" Other maps
nnoremap <Return> o<Esc>