Added vim conf

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-06-15 10:52:17 +02:00
parent 27d7d5dacf
commit 948344af18
Signed by: y0rune
GPG Key ID: F204C385F57EB348
5 changed files with 39 additions and 11 deletions

View File

@ -5,7 +5,7 @@ if ! filereadable(system('echo -n "$HOME/.config/nvim/autoload/plug.vim"'))
autocmd VimEnter * PlugInstall autocmd VimEnter * PlugInstall
endif endif
let mapleader = " " let mapleader = "\<Space>"
let g:python3_host_prog = expand('/usr/src/python') let g:python3_host_prog = expand('/usr/src/python')
set laststatus=2 set laststatus=2
set shiftwidth=4 set shiftwidth=4
@ -93,6 +93,7 @@ call plug#end()
set statusline= set statusline=
set statusline+=%#IncSearch# set statusline+=%#IncSearch#
set statusline+=\ %y set statusline+=\ %y
set statusline+=\ %m
set statusline+=\ %r set statusline+=\ %r
set statusline+=%#CursorLineNr# set statusline+=%#CursorLineNr#
set statusline+=\ %F set statusline+=\ %F
@ -105,9 +106,10 @@ set statusline+=\ [%c]
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0) command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0) command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
set grepprg=rg\ --vimgrep set grepprg=rg\ --vimgrep
nmap <Leader>a :Buffers<CR> nmap <Leader>e :Buffers<CR>
nmap <Leader>s :Rg<CR> nmap <Leader>q :Rg<CR>
nmap <Leader>d :Files<CR> nmap <Leader>w :Files<CR>
nmap <C-p> :Files<CR>
" Resize window " Resize window
nnoremap L :vertical resize +5<CR> nnoremap L :vertical resize +5<CR>

View File

@ -5,7 +5,7 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(markdown-command "/usr/bin/pandoc") '(markdown-command "/usr/bin/pandoc")
'(package-selected-packages '(package-selected-packages
'(python-black zenburn-theme yaml-mode use-package treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil switch-window smex robe prettier ox-reveal multiple-cursors move-text lsp-java htmlize helm flymake-yaml flymake-shellcheck flymake-shell flymake-ruby flycheck-haskell flycheck-bashate dracula-theme dockerfile-mode dired-sidebar company-tabnine company-jedi company-c-headers company-ansible auto-complete-clang apache-mode ansible-doc ansible))) '(org-bullets zenburn-theme yaml-mode use-package treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil switch-window smex robe python-black ox-reveal multiple-cursors move-text lsp-java htmlize helm flymake-shellcheck flymake-shell flymake-ruby flycheck-haskell flycheck-bashate dockerfile-mode dired-sidebar company-jedi company-ansible auto-complete-clang apache-mode ansible-doc ansible)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -478,6 +478,16 @@
;;; --- Look & Feel --- ;;; --- Look & Feel ---
;; Org-bullets
(use-package org-bullets
:ensure t
:config
:after org
:hook (org-mode . org-bullets-mode)
:custom
(org-bullets-bullet-list '("" "" "" "" "" "" "")))
;; Helm ;; Helm
(use-package helm (use-package helm
:ensure t :ensure t

View File

@ -1,13 +1,13 @@
;; ----- smex-history ----- ;; ----- smex-history -----
( (
find-file
replace-string
whitespace-mode
package-refresh-contents package-refresh-contents
read-only-mode read-only-mode
overwrite-mode overwrite-mode
write-file write-file
python-black-on-save-mode
python-black-buffer
ispell
) )
;; ----- smex-data ----- ;; ----- smex-data -----
@ -50,7 +50,7 @@
(customize-themes . 1) (customize-themes . 1)
(ido-mode . 1) (ido-mode . 1)
(lsp-describe-session . 1) (lsp-describe-session . 1)
(whitespace-mode . 6) (whitespace-mode . 10)
(python-shell-switch-to-shell . 1) (python-shell-switch-to-shell . 1)
(run-python . 2) (run-python . 2)
(display-fill-column-indicator-mode . 3) (display-fill-column-indicator-mode . 3)
@ -61,8 +61,8 @@
(python-black . 9) (python-black . 9)
(python-black-on-save-mode . 2) (python-black-on-save-mode . 2)
(message-tab . 1) (message-tab . 1)
(find-file . 1) (find-file . 2)
(replace-string . 3) (replace-string . 6)
(ispell . 2) (ispell . 2)
(python-black-buffer . 1) (python-black-buffer . 1)
(write-file . 1) (write-file . 1)

16
.gitignore vendored
View File

@ -134,6 +134,22 @@
.local/bin/symilar .local/bin/symilar
.local/bin/vpnst .local/bin/vpnst
.local/bin/wheel .local/bin/wheel
.local/bin/estimator_ckpt_converter
.local/bin/f2py3.9
.local/bin/google-oauthlib-tool
.local/bin/import_pb_to_tensorboard
.local/bin/markdown_py
.local/bin/pyrsa-*
.local/bin/saved_model_cli
.local/bin/tensorboard
.local/bin/tf_upgrade_v2
.local/bin/tflite_convert
.local/bin/toco
.local/bin/toco_from_protos
.local/bin/tqdm
.local/bin/f2py
.local/bin/f2py3
.local/bin/wheel
.local/include/ .local/include/
.local/lib/ .local/lib/
.local/lib64/ .local/lib64/