summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>