34 lines
1.1 KiB
VimL
34 lines
1.1 KiB
VimL
|
autocmd FileType python map <buffer> <F9> :w<CR>:exec '!python' shellescape(@%, 1)<CR>
|
||
|
" Disable compatibility with vi which can cause unexpected issues.
|
||
|
set nocompatible
|
||
|
" Enable type file detection. Vim will be able to try to detect the type of file in use.
|
||
|
filetype on
|
||
|
" Enable plugins and load plugin for the detected file type.
|
||
|
filetype plugin on
|
||
|
" Load an indent file for the detected file type.
|
||
|
filetype indent on
|
||
|
" Turn syntax highlighting on.
|
||
|
syntax on
|
||
|
set term=kitty
|
||
|
" Highlight cursor line underneath the cursor vertically.
|
||
|
set cursorline
|
||
|
" Set tab width to 4 columns.
|
||
|
set tabstop=4
|
||
|
" While searching though a file incrementally highlight matching characters as you type.
|
||
|
set incsearch
|
||
|
" Show matching words during a search.
|
||
|
set showmatch
|
||
|
" Use highlighting when doing a search.
|
||
|
set hlsearch
|
||
|
" Set the commands to save in history default number is 20.
|
||
|
set history=1000
|
||
|
" Enable auto completion menu after pressing TAB.
|
||
|
set wildmenu
|
||
|
" Make wildmenu behave like similar to Bash completion.
|
||
|
set wildmode=list:longest
|
||
|
|
||
|
set mouse=a
|
||
|
|
||
|
" provide path directly to the library file
|
||
|
let g:clang_library_path='/usr/lib/libclang.so'
|