Skip to content

Instantly share code, notes, and snippets.

@itsmaheshkariya
Last active July 12, 2020 20:58
Show Gist options
  • Save itsmaheshkariya/6bb8ef0bbd3a48450f88e9ef15d10bf9 to your computer and use it in GitHub Desktop.
Save itsmaheshkariya/6bb8ef0bbd3a48450f88e9ef15d10bf9 to your computer and use it in GitHub Desktop.
Vim Settings for Making IDE.

#Set NERDTree vim ~/.vimrc

let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 25
augroup ProjectDrawer
  autocmd!
  autocmd VimEnter * :Vexplore
augroup END

change between windows

Ctrl + w

Copy Pest

In visual mode select by pressing v and then select by arrow keys and use y for copy , x for cut and p for pest. v y x p

Create directory

go to explorer :Ex and press d and enter

Create filename

go to explorer :Ex and press % and enter

Resize

resize 40 vertical resize 25

Add set number in vimrc file to display numbers

Add syntax on to vimrc file to syntax highlighting

switch between tabs :tabn :tabp

switch between windows Ctrl+w

Ctrl+n or Ctrl+p for auto complete

#emmet.vim git clone https://github.com/mattn/emmet-vim.git ~/.vim/bundle/emmet-vim

##auto complete brackets inoremap ( ()i inoremap " ""i inoremap ' ''i inoremap { {}O

##reload after saving vimrc

Es+:vs ~/.vimrc
//add changes
:wq
:source ~/.vimrc

change tabs in texplore

g+t g+T

Install airline

filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'gmarik/Vundle.vim'

call vundle#end()

filetype plugin indent on

set backspace=indent,eol,start
set ruler
set number
set showcmd
set incsearch
set hlsearch

syntax on

set mouse=a
PluginInstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment