Adding new stuff
This commit is contained in:
parent
fbf49cf440
commit
7fda0933f5
24 changed files with 21 additions and 8 deletions
29
.vimrc
29
.vimrc
|
|
@ -4,6 +4,11 @@
|
|||
" Load rename plugin
|
||||
so ~/.vim/Rename.vim
|
||||
|
||||
|
||||
" Rezise splits
|
||||
"nnoremap <C-Left> :vertical resize -20<CR>
|
||||
|
||||
|
||||
" Autoindent html
|
||||
" autocmd BufWritePre *.html :normal gg=G
|
||||
|
||||
|
|
@ -51,12 +56,12 @@ let mapleader = ","
|
|||
" Swap lines
|
||||
nnoremap <Leader>k :-1,-1m+0<CR>k
|
||||
nnoremap <Leader>j :+0,+0m+1<CR>
|
||||
vnoremap <Leader>k :m '<-2<CR>gv=gv
|
||||
vnoremap <Leader>j :m '>+1<CR>gv=gv
|
||||
|
||||
" Enable folding with spacebar
|
||||
nnoremap <space> za
|
||||
|
||||
" Toggle NEDRTree plugin
|
||||
noremap <C-b> :NERDTreeToggle<CR>
|
||||
|
||||
" Make surrounding with various characters easier
|
||||
nmap <Leader>' ysiW'
|
||||
|
|
@ -80,9 +85,6 @@ vnoremap <BS> d
|
|||
" Save with <Leader> s
|
||||
noremap <silent> <Leader>s :update<CR>
|
||||
|
||||
" Open NERDTree by default
|
||||
"autocmd VimEnter * NERDTree
|
||||
"autocmd VimEnter * wincmd p
|
||||
|
||||
" Writes to all buffers when switching to another buffer
|
||||
set autowrite
|
||||
|
|
@ -348,11 +350,21 @@ noremap <Down> <NOP>
|
|||
noremap <Left> <NOP>
|
||||
noremap <Right> <NOP>
|
||||
|
||||
" Do splits with C-right and C-up
|
||||
nnoremap <silent> <C-Right> :vsp<CR>
|
||||
nnoremap <silent> <C-Up> :sp<CR>
|
||||
" Do splits with Leader-\ and Leader--
|
||||
" nnoremap <silent> <C-Right> :vsp<CR>
|
||||
" nnoremap <silent> <C-Up> :sp<CR>
|
||||
noremap <leader>\ :vsp<CR>
|
||||
noremap <leader>- :sp<CR>
|
||||
|
||||
|
||||
" NERDTree settings
|
||||
" Open NERDTree by default
|
||||
"autocmd VimEnter * NERDTree
|
||||
"autocmd VimEnter * wincmd p
|
||||
" Toggle NEDRTree plugin
|
||||
noremap <C-b> :NERDTreeToggle<CR>
|
||||
let NERDTreeIgnore = ['\.pyc$', '__pycache__']
|
||||
let NERDTreeShowHidden=1
|
||||
|
||||
" Better navigating through omnicomplete option list
|
||||
" See
|
||||
|
|
@ -436,3 +448,4 @@ set matchtime=3
|
|||
nnoremap <silent> <F4> :syntax sync fromstart<CR>
|
||||
|
||||
autocmd FileType markdown syntax sync fromstart
|
||||
|
||||
|
|
|
|||
Binary file not shown.
BIN
vim-plugins/tmp/undo/%etc%default%puppetserver
Normal file
BIN
vim-plugins/tmp/undo/%etc%default%puppetserver
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
vim-plugins/tmp/undo/%home%viktor%a.py
Normal file
BIN
vim-plugins/tmp/undo/%home%viktor%a.py
Normal file
Binary file not shown.
BIN
vim-plugins/tmp/undo/%home%viktor%ansible-play%hosts
Normal file
BIN
vim-plugins/tmp/undo/%home%viktor%ansible-play%hosts
Normal file
Binary file not shown.
BIN
vim-plugins/tmp/undo/%home%viktor%ansible-play%main.yml
Normal file
BIN
vim-plugins/tmp/undo/%home%viktor%ansible-play%main.yml
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
vim-plugins/tmp/undo/%home%viktor%esx-key
Normal file
BIN
vim-plugins/tmp/undo/%home%viktor%esx-key
Normal file
Binary file not shown.
Binary file not shown.
BIN
vim-plugins/tmp/undo/%home%viktor%tricks.txt
Normal file
BIN
vim-plugins/tmp/undo/%home%viktor%tricks.txt
Normal file
Binary file not shown.
Binary file not shown.
BIN
vim-plugins/tmp/undo/%tmp%crontab.4o56kp%crontab
Normal file
BIN
vim-plugins/tmp/undo/%tmp%crontab.4o56kp%crontab
Normal file
Binary file not shown.
BIN
vim-plugins/tmp/undo/%tmp%crontab.aL2uZd%crontab
Normal file
BIN
vim-plugins/tmp/undo/%tmp%crontab.aL2uZd%crontab
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue