Skip to content

Instantly share code, notes, and snippets.

@prrraveen
Created January 14, 2019 18:39
Show Gist options
  • Save prrraveen/970efb3aaaf3a183619023e2f1224af4 to your computer and use it in GitHub Desktop.
Save prrraveen/970efb3aaaf3a183619023e2f1224af4 to your computer and use it in GitHub Desktop.
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
Plug 'tpope/vim-vinegar'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'altercation/vim-colors-solarized'
Plug 'rking/ag.vim'
Plug 'vim-syntastic/syntastic'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'kien/ctrlp.vim'
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'tomtom/tcomment_vim'
call plug#end()
syntax on
filetype plugin indent on
"set paste
set background=dark
let g:solarized_termcolors=256
se t_Co=256
colorscheme solarized
let mapleader=","
"set incremantal search on
set incsearch
"highlight all mactchin
set hlsearch
"set line number
set number
" Tab control
"set noexpandtab " tabs ftw
set expandtab
set smarttab " tab respects 'tabstop', 'shiftwidth', and 'softtabstop'
set tabstop=4 " the visible width of tabs
set softtabstop=2 " edit as if the tabs are 4 characters wide
set shiftwidth=2 " number of spaces to use for indent and unindent
set shiftround " round indent to a multiple of 'shiftwidth'
"jsx syntax and indent on .js files
let g:jsx_ext_required = 0
"You can set the directory where the swap files are stored, so they don't
"clutter your normal directories:
set swapfile
set dir=~/.tmp
set shortmess+=A
nnoremap W w
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_check_on_open = 1
"move between split sceens
nmap <C-h> <C-w>h
nmap <C-j> <C-w>j
nmap <C-k> <C-w>k
nmap <C-l> <C-w>l
set autoindent
set noexpandtab
set tabstop=4
set shiftwidth=4
"pick relative path
"set autochdir
inoremap <expr> j ((pumvisible())?("\<C-n>"):("j"))
inoremap <expr> k ((pumvisible())?("\<C-p>"):("k"))
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment