"general
set ignorecase
set history=100
set so=7 "autoscroll 7 lines from the top and bottom
set ruler
set backspace=2
set noswapfile
set laststatus=2
set hidden
set guioptions=m
set noerrorbells visualbell t_vb=
autocmd GUIEnter * set visualbell t_vb=
"appearance
syntax on
set synmaxcol=500
set number
set relativenumber
set nowrap
set list listchars=tab:->,eol:$
set cursorline
set cursorcolumn
set hlsearch
set mps+=<:>
"indentation
set tabstop=2
set shiftwidth=2
set softtabstop=2
set autoindent
set smartindent
set smarttab
set noexpandtab
"autocomplete filenames to the longest possible name, show additional matches in status bar
set wildmode=longest:full
set wildmenu
"folding
set foldmethod=indent
set foldnestmax=10
set nofoldenable
set foldlevel=1
" mappings
imap jk
let mapleader = " "
map f :LAck -i
map e :GFiles
map E :E
map t :tabnew
map n :NERDTreeToggle
map w :w
map lo :lopen
map lc :lclose
map ln :lnext
map lp :lprevious
map p "0p
vmap c y:new ~/.vimbufferVGp:x | :!cat ~/.vimbuffer | clip.exe
set pastetoggle=
xnoremap p pgvy
color dracula
vnorem // y/"
set showtabline=2
set statusline=%f "tail of the filename
set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding
set statusline+=%{&ff}] "file format
set statusline+=%h "help file flag
set statusline+=%m "modified flag
set statusline+=%r "read only flag
set statusline+=%y "filetype
set statusline+=%b\ 0x%B "character under cursor
set statusline+=%= "left/right separator
set statusline+=%c, "cursor column
set statusline+=%l/%L "cursor line/total lines
set statusline+=\ %P "percent through file
set mouse=a
set wildignore+=node_modules/,.git/,.sass-cache/,dist/,admin/dist/,/*.dist.js,/WEB-INF/
set autoread
au FileType * set fo-=c fo-=r fo-=o "stop auto-managing comments
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf' Plug 'junegunn/fzf.vim' Plug 'ernstvanderlinden/vim-coldfusion' Plug 'pangloss/vim-javascript' Plug 'posva/vim-vue' Plug 'danilo-augusto/vim-afterglow' Plug 'preservim/nerdtree' Plug 'mileszs/ack.vim' Plug 'dracula/vim', { 'as': 'dracula' }
call plug#end()
"general set ignorecase set history=100 set so=7 "autoscroll 7 lines from the top and bottom set ruler set backspace=2 set noswapfile set laststatus=2 set hidden set guioptions=m set noerrorbells visualbell t_vb= autocmd GUIEnter * set visualbell t_vb=
"appearance syntax on set synmaxcol=500 set number set relativenumber set nowrap set list listchars=tab:->,eol:$ set cursorline set cursorcolumn set hlsearch set mps+=<:>
"indentation set tabstop=2 set shiftwidth=2 set softtabstop=2 set autoindent set smartindent set smarttab set noexpandtab
"autocomplete filenames to the longest possible name, show additional matches in status bar set wildmode=longest:full set wildmenu
"folding set foldmethod=indent set foldnestmax=10 set nofoldenable set foldlevel=1
" mappings imap jk
let mapleader = " " mapf :LAck -i
map e :GFiles
map E :E
map t :tabnew
map n :NERDTreeToggle
map w :w
map lo :lopen
map lc :lclose
map ln :lnext
map lp :lprevious
map p "0p
vmap c y:new ~/.vimbufferVGp:x | :!cat ~/.vimbuffer | clip.exe
set pastetoggle=
xnoremap p pgvy
color dracula vnorem // y/"
set showtabline=2
set statusline=%f "tail of the filename set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding set statusline+=%{&ff}] "file format set statusline+=%h "help file flag set statusline+=%m "modified flag set statusline+=%r "read only flag set statusline+=%y "filetype set statusline+=%b\ 0x%B "character under cursor set statusline+=%= "left/right separator set statusline+=%c, "cursor column set statusline+=%l/%L "cursor line/total lines set statusline+=\ %P "percent through file
set mouse=a
set wildignore+=node_modules/,.git/,.sass-cache/,dist/,admin/dist/,/*.dist.js,/WEB-INF/
set autoread
au FileType * set fo-=c fo-=r fo-=o "stop auto-managing comments