74 lines
2.5 KiB
VimL
Raw Normal View History

"
2020-03-19 16:25:43 +01:00
" ██
" ░░
" ███████ █████ ██████ ██ ██ ██ ██████████
" ░░██░░░██ ██░░░██ ██░░░░██░██ ░██░██░░██░░██░░██
" ░██ ░██░███████░██ ░██░░██ ░██ ░██ ░██ ░██ ░██
" ░██ ░██░██░░░░ ░██ ░██ ░░████ ░██ ░██ ░██ ░██
" ███ ░██░░██████░░██████ ░░██ ░██ ███ ░██ ░██
" ░░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░ ░░
2020-03-19 16:25:43 +01:00
source $HOME/.config/nvim/statusline.vim
source $HOME/.config/nvim/plugins.vim
source $HOME/.config/nvim/bindings.vim
"=============
" Basic stuff
"=============
syntax on
filetype plugin indent on
set scrolloff=5
set pumheight=10
set autoindent
set smarttab
2020-03-18 13:51:25 +01:00
set number relativenumber
set clipboard=unnamedplus
set inccommand=nosplit
set tabstop=4
set shiftwidth=4
set ignorecase
set smartcase
set undofile
set background=light
set mouse=a
set splitright
set splitbelow
2020-03-19 16:25:43 +01:00
set noshowmode
color biual
" Restore cursor position
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END
2020-03-19 16:25:43 +01:00
"Python paths, needed for virtualenvs
let g:python3_host_prog = '/usr/bin/python3'
let g:python_host_prog = '/usr/bin/python2'
"===================
" Language-specific
"===================
augroup langindentation
autocmd Filetype c setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype cpp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype css setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype javascript setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype html setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype json setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype scss setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype php setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
autocmd Filetype yaml setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
augroup END
"==Encoding==
scriptencoding utf-8