Mercurial > packages > magicforger
view .vimrc @ 16:e577dac6c913 development
Simple test
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Mon, 23 Sep 2024 20:32:05 -0400 |
| parents | 4bb4daa9e3f1 |
| children |
line wrap: on
line source
syntax on set tabstop=2 set shiftwidth=2 set softtabstop=2 set autoindent set smartindent "set termguicolors "set number nnoremap <Leader>cc :set colorcolumn=80<cr> nnoremap <Leader>ncc :set colorcolumn-=80<cr> nnoremap <C-l> :ALECodeAction <cr> set mouse=a function! FixPhpFiles() " Save the current cursor position let save_cursor = getpos(".") "Format the files let command = 'php-cs-fixer fix .' let output = system(command) " Reload the file and restore the cursor position execute 'edit!' call setpos(".", save_cursor) endfunction nnoremap <leader>f :call FixPhpFiles()<CR> " Committing commands map <C-k> :wa<CR>:!hg addremove && hg commit <CR>
