summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2019-04-10 13:20:22 +0300
committerYigit Sever2019-04-10 13:20:22 +0300
commitd65b7f04edfdb84c0e8d1f499d6d243f82b400a4 (patch)
treee400120d3d4939f851ef074c04aca10fdc056713
parent6e15ee0798d53f4dc3029f14fbc36994433b8944 (diff)
downloaddotfiles-d65b7f04edfdb84c0e8d1f499d6d243f82b400a4.tar.gz
dotfiles-d65b7f04edfdb84c0e8d1f499d6d243f82b400a4.tar.bz2
dotfiles-d65b7f04edfdb84c0e8d1f499d6d243f82b400a4.zip
Vim uses abolish
-rw-r--r--.config/nvim/after/plugin/abolish.vim11
-rwxr-xr-x.config/nvim/init.vim56
2 files changed, 40 insertions, 27 deletions
diff --git a/.config/nvim/after/plugin/abolish.vim b/.config/nvim/after/plugin/abolish.vim
new file mode 100644
index 0000000..cfb6233
--- /dev/null
+++ b/.config/nvim/after/plugin/abolish.vim
@@ -0,0 +1,11 @@
1Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or} {despe,sepa}rat{}
2Abolish persistan{ce,t,tly} persisten{}
3Abolish despara{te,tely,tion} despera{}
4Abolish seperat{e,es,ed,ing,ely,ion,ions,or} separat{}
5Abolish teh the
6Abolish {,un}nec{ce,ces,e}sar{y,ily} {}nec{es}sar{}
7Abolish {,ir}releven{ce,cy,t,tly} {}relevan{}
8
9iabbrev <silent> longdate <C-R>=strftime("%a %b %d %T %Z %Y")<CR>
10iabbrev <silent> todaydatetime <C-R>=strftime("%F %T")<CR>
11iabbrev <silent> todaydate <C-R>=strftime("%F")<CR>
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index f3ce6d5..756480f 100755
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -27,6 +27,7 @@ Plug 'bling/vim-airline'
27 27
28" color theme. 28" color theme.
29Plug 'arcticicestudio/nord-vim' 29Plug 'arcticicestudio/nord-vim'
30Plug 'aonemd/kuroi.vim'
30 31
31"Personal wiki 32"Personal wiki
32Plug 'vimwiki/vimwiki' 33Plug 'vimwiki/vimwiki'
@@ -43,10 +44,8 @@ Plug 'godlygeek/tabular'
43Plug 'dbeniamine/cheat.sh-vim' 44Plug 'dbeniamine/cheat.sh-vim'
44"color code highlight 45"color code highlight
45Plug 'chrisbra/Colorizer' 46Plug 'chrisbra/Colorizer'
46 47"move selections up and down
47"comment helper 48Plug 'matze/vim-move'
48"Plug 'scrooloose/nerdcommenter'
49Plug 'tpope/vim-commentary'
50 49
51"folding ledger files 50"folding ledger files
52Plug 'ledger/vim-ledger' 51Plug 'ledger/vim-ledger'
@@ -80,6 +79,8 @@ Plug 'tpope/vim-speeddating'
80Plug 'tpope/vim-abolish' 79Plug 'tpope/vim-abolish'
81"provides ga, show unicode stuff of char under cursor 80"provides ga, show unicode stuff of char under cursor
82Plug 'tpope/vim-characterize' 81Plug 'tpope/vim-characterize'
82"comment helper
83Plug 'tpope/vim-commentary'
83 84
84"fancy start screen 85"fancy start screen
85Plug 'mhinz/vim-startify' 86Plug 'mhinz/vim-startify'
@@ -98,6 +99,10 @@ autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
98 99
99" Close vim if the only window left open is NERDTree 100" Close vim if the only window left open is NERDTree
100autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif 101autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
102
103" Resize all windows proportionally when the terminal is resized
104" let terminal resize scale the internal windows
105autocmd VimResized * :wincmd =
101"}}} 106"}}}
102 107
103"{{{Misc Settings 108"{{{Misc Settings
@@ -160,22 +165,22 @@ endfunction
160"}}} 165"}}}
161 166
162"{{{Theme Rotating 167"{{{Theme Rotating
163"let themeindex=0 168let themeindex=0
164"function! RotateColorTheme() 169function! RotateColorTheme()
165 "let y = -1 170 let y = -1
166 "while y == -1 171 while y == -1
167 "let colorstring = "#gotham#" 172 let colorstring = "#nord#kuroi#"
168 "let x = match( colorstring, "#", g:themeindex ) 173 let x = match( colorstring, "#", g:themeindex )
169 "let y = match( colorstring, "#", x + 1 ) 174 let y = match( colorstring, "#", x + 1 )
170 "let g:themeindex = x + 1 175 let g:themeindex = x + 1
171 "if y == -1 176 if y == -1
172 "let g:themeindex = 0 177 let g:themeindex = 0
173 "else 178 else
174 "let themestring = strpart(colorstring, x + 1, y - x - 1) 179 let themestring = strpart(colorstring, x + 1, y - x - 1)
175 "return ":colorscheme ".themestring 180 return ":colorscheme ".themestring
176 "endif 181 endif
177 "endwhile 182 endwhile
178"endfunction 183endfunction
179" }}} 184" }}}
180 185
181"}}} 186"}}}
@@ -194,7 +199,7 @@ nnoremap <silent> <C-Left> :tabprevious<CR>
194" New Tab 199" New Tab
195nnoremap <silent> <C-t> :tabnew<CR> 200nnoremap <silent> <C-t> :tabnew<CR>
196" Rotate Color Scheme <F8> 201" Rotate Color Scheme <F8>
197"nnoremap <silent> <F8> :execute RotateColorTheme()<CR> 202nnoremap <silent> <F8> :execute RotateColorTheme()<CR>
198" FixIt from YCM 203" FixIt from YCM
199map <F9> :YcmCompleter FixIt<CR> 204map <F9> :YcmCompleter FixIt<CR>
200" Edit vimrc \ev 205" Edit vimrc \ev
@@ -213,17 +218,14 @@ nnoremap <C-k> <C-w>k
213nnoremap <C-h> <C-w>h 218nnoremap <C-h> <C-w>h
214nnoremap <C-l> <C-w>l 219nnoremap <C-l> <C-w>l
215" Disable highlight when <leader><cr> is pressed 220" Disable highlight when <leader><cr> is pressed
216map <silent> <leader><cr> :noh<cr> 221nnoremap <Leader><cr> :set hls!<cr>
217" Space will toggle folds! 222" Space will toggle folds!
218nnoremap <space> za 223nnoremap <space> za
219" Search mappings: These will make it so that going to the next one in a 224" Search mappings: These will make it so that going to the next one in a
220" search will center on the line it's found in. 225" search will center on the line it's found in.
221map N Nzz 226map N Nzz
222map n nzz 227map n nzz
223"Insert timestamp 228
224nnoremap <F5> "=strftime("%F %T")<CR>P
225inoremap <F5> <C-R>=strftime("%F %T")<CR>
226nnoremap <Leader>t "=strftime("%F")<CR>P
227"}}} 229"}}}
228 230
229"{{{Tagbar 231"{{{Tagbar
@@ -372,5 +374,5 @@ let g:vimtex_view_method = 'zathura'
372" }}} 374" }}}
373 375
374" {{{ rainbow 376" {{{ rainbow
375let g:rainbow_active = 1 377let g:rainbow_active = 0
376" }}} 378" }}}