Adding new stuff

This commit is contained in:
ViktorBarzin 2017-08-27 00:00:02 +03:00
parent fbf49cf440
commit 7fda0933f5
24 changed files with 21 additions and 8 deletions

29
.vimrc
View file

@ -4,6 +4,11 @@
" Load rename plugin " Load rename plugin
so ~/.vim/Rename.vim so ~/.vim/Rename.vim
" Rezise splits
"nnoremap <C-Left> :vertical resize -20<CR>
" Autoindent html " Autoindent html
" autocmd BufWritePre *.html :normal gg=G " autocmd BufWritePre *.html :normal gg=G
@ -51,12 +56,12 @@ let mapleader = ","
" Swap lines " Swap lines
nnoremap <Leader>k :-1,-1m+0<CR>k nnoremap <Leader>k :-1,-1m+0<CR>k
nnoremap <Leader>j :+0,+0m+1<CR> 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 " Enable folding with spacebar
nnoremap <space> za nnoremap <space> za
" Toggle NEDRTree plugin
noremap <C-b> :NERDTreeToggle<CR>
" Make surrounding with various characters easier " Make surrounding with various characters easier
nmap <Leader>' ysiW' nmap <Leader>' ysiW'
@ -80,9 +85,6 @@ vnoremap <BS> d
" Save with <Leader> s " Save with <Leader> s
noremap <silent> <Leader>s :update<CR> 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 " Writes to all buffers when switching to another buffer
set autowrite set autowrite
@ -348,11 +350,21 @@ noremap <Down> <NOP>
noremap <Left> <NOP> noremap <Left> <NOP>
noremap <Right> <NOP> noremap <Right> <NOP>
" Do splits with C-right and C-up " Do splits with Leader-\ and Leader--
nnoremap <silent> <C-Right> :vsp<CR> " nnoremap <silent> <C-Right> :vsp<CR>
nnoremap <silent> <C-Up> :sp<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 NERDTreeIgnore = ['\.pyc$', '__pycache__']
let NERDTreeShowHidden=1
" Better navigating through omnicomplete option list " Better navigating through omnicomplete option list
" See " See
@ -436,3 +448,4 @@ set matchtime=3
nnoremap <silent> <F4> :syntax sync fromstart<CR> nnoremap <silent> <F4> :syntax sync fromstart<CR>
autocmd FileType markdown syntax sync fromstart autocmd FileType markdown syntax sync fromstart

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.