Skip to content

Commit

Permalink
Update .vimrc - Version: 1.0_kali
Browse files Browse the repository at this point in the history
  • Loading branch information
brainfucksec committed May 11, 2019
1 parent 6e88f51 commit 31e449e
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@

""""""""""""""""""""""""""""""""""""""""""""""
"
" vim configuration file
" ----------------------
" => vim configuration file
"
" Version: 0.50_kali - 2018/10/07 19:56:57
" Version: 1.0_kali - 2018/05/11 19:56:57
" Author: Brainfuck
"
" https://github.com/brainfucksec/dotfiles
" Website: https://github.com/brainfucksec/dotfiles
"
""""""""""""""""""""""""""""""""""""""""""""""

Expand Down Expand Up @@ -73,7 +71,8 @@ set t_vb=
" Show line number
set number

" Folding settings
" Enable folding manually with 'marker' option
" Use two consecutive open/closed curly braces for 'foldmarker'
set foldmethod=marker
set foldmarker={{,}}

Expand All @@ -89,6 +88,9 @@ set showcmd
" Remove whitespace on save
autocmd BufWritePre * :%s/\s\+$//e

" Line lenght marker at 80 colums
set colorcolumn=80


""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and fonts
Expand All @@ -106,7 +108,7 @@ set background=dark
" Extend background color to the whole screen (xfce4-terminal fix)
set t_ut=

" Set utf8 as standard encoding and en_US as the standard language
" Set utf8 as standard encoding
set encoding=utf8


Expand All @@ -117,13 +119,13 @@ set encoding=utf8
" Use Unix for new files and autodetect the rest
set ffs=unix,dos,mac

" Force Markdown syntax
autocmd BufRead,BufNew *.md set filetype=markdown

" Turn backup off, swap file off
set nobackup
set noswapfile

" Remove line lenght marker for selected filetypes
autocmd FileType text,markdown,xml,html,xhtml,javascript setlocal colorcolumn=0


""""""""""""""""""""""""""""""""""""""""""""
" => Memory, CPU
Expand Down Expand Up @@ -153,8 +155,7 @@ set shiftwidth=4
set tabstop=4

" 1 tab == 2 spaces for selected filetypes
autocmd FileType xml,html,xhtml setlocal shiftwidth=2 tabstop=2
autocmd BufRead,BufNew *.css setlocal shiftwidth=2 tabstop=2
autocmd FileType xml,html,xhtml,css setlocal shiftwidth=2 tabstop=2

set ai "Auto indent
set si "Smart indent
Expand All @@ -169,8 +170,13 @@ let g:indentLine_char = '│'
" => Autocompletion, linting
""""""""""""""""""""""""""""""""""""""""""""

" => Completion settings:

" Avoids scanning of 'tags (t)' and 'included files (i)' during completion
set complete-=t,i

" Completion popup settings (:help 'completeopt')
set completeopt+=menuone,noinsert,noselect
set completeopt+=menuone,noselect,noinsert

" Shut off completion messages
set shortmess+=c
Expand Down Expand Up @@ -203,14 +209,13 @@ nmap <silent> <C-j> <Plug>
" Always show the status line
set laststatus=2


" lightline
" Disable mode information under status line
set noshowmode

" Set colorscheme
let g:lightline = {
\ 'colorscheme': 'molokai',
\ 'colorscheme': 'srcery_drk',
\ }


Expand All @@ -224,8 +229,8 @@ map \r :source ~/.vimrc<CR>
" Cancel a search with Ctrl+l
nnoremap <silent> <C-l> :nohl<CR><C-l>
" Make jj do Esc
inoremap jj <Esc>
" Press kk to exit.
inoremap <Esc>
" Don't use arrow keys
map <up> <nop>
Expand All @@ -240,6 +245,3 @@ inoremap <leader>s <C-c>:w<cr>
" NerdTree
" Open NerdTree with Ctrl+n
map <C-n> :NERDTreeToggle<CR>
" Show hidden files
"let NERDTreeShowHidden=1

0 comments on commit 31e449e

Please sign in to comment.