matchTaf, wordpress.vim plugins added. Better key mappings

This commit is contained in:
ManjaroOne666 2017-09-17 23:01:26 +01:00
parent 152a62585f
commit aabb2cfd1a
1 changed files with 48 additions and 12 deletions

60
vimrc
View File

@ -1,5 +1,6 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
filetype off " required filetype off " required
set ttyfast
" set the runtime path to include Vundle and initialize " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.vim/bundle/Vundle.vim
@ -97,6 +98,14 @@ Plugin 'gregsexton/MatchTag'
" https://github.com/shawncplus/phpcomplete.vim " https://github.com/shawncplus/phpcomplete.vim
Plugin 'shawncplus/phpcomplete.vim' Plugin 'shawncplus/phpcomplete.vim'
" WordPress.vim
" https://github.com/dsawardekar/wordpress.vim
" For up to date Wordpress Files see:
" https://github.com/joseluis/wordpress.vim-generator
Plugin 'dsawardekar/wordpress.vim'
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required
@ -112,6 +121,38 @@ filetype plugin indent on " required
" see :h vundle for more details or wiki for FAQ " see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line " Put your non-Plugin stuff after this line
colorscheme customred256
" ignore case when searching
set ignorecase
" unless search contains uppercase
set smartcase
set hidden
set bg=dark
" set number
set nonumber
set autoindent
" set width of the fold column to create a margin
set foldcolumn=2
" key mappings
let mapleader = "\<space>"
" jk acts as escape in insert,visual/select modes
inoremap jk <esc>
inoremap <esc> <nop>
vnoremap jk <esc>
vnoremap <esc> <nop>
" disable arrow keys
noremap <Up> <nop>
noremap <Down> <nop>
noremap <Left> <nop>
noremap <Right> <nop>
@ -130,20 +171,12 @@ nnoremap <Esc>k :resize -1<CR>
nnoremap <Esc>l :vertical resize +1<CR> nnoremap <Esc>l :vertical resize +1<CR>
nnoremap <Esc>h :vertical resize -1<CR> nnoremap <Esc>h :vertical resize -1<CR>
let mapleader = "\<space>"
set hidden
set bg=dark " abbreviations
" set number iabbrev adn and
set nonumber iabbrev waht what
set autoindent iabbrev tehn then
" set width of the fold column to create a margin
set foldcolumn=2
" hi FoldColumn ctermfg=255 ctermbg=226
colorscheme customred256
@ -296,6 +329,9 @@ endfunction
"nmap <silent> <C-k> <Plug>(ale_previous_wrap) "nmap <silent> <C-k> <Plug>(ale_previous_wrap)
"nmap <silent> <C-j> <Plug>(ale_next_wrap) "nmap <silent> <C-j> <Plug>(ale_next_wrap)
"wordpress.vim
let g:wordpress_vim_wordpress_path = "~/Projects/Wordpress/WordpressSource"
" syntastic " syntastic