summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/lf/lfrc14
-rw-r--r--config/vim/vimrc1
2 files changed, 11 insertions, 4 deletions
diff --git a/config/lf/lfrc b/config/lf/lfrc
index ebfffa3..b478965 100644
--- a/config/lf/lfrc
+++ b/config/lf/lfrc
@@ -16,7 +16,7 @@ map x $$f # execute current file (must be executable)
map zb :{{ set sortby natural; set info size; set preview; set ratios 5:2; }}
map zz :{{ set preview; set ratios 1:2:3; }}
-# Directory change
+# Directory change
map gp cd ~/proj
map gt cd ~/testProj
map gc cd ~/.config
@@ -38,7 +38,13 @@ set promptfmt "\033[48;1;234m %w/%f"
cmd trash !{{
[ ! -d ~/.trash ] && mkdir -p ~/.trash
- set -f
- printf "\nItems to be trashed:\n$fx\n\nTrash? [y/N]" && read ans
- [ $ans == "y" ] && mv $fx ~/.trash && echo "Trash complete!" || echo "Failed! Use y to trash."
+ printf "\nItems to be trashed:\n$fx\n\nTrash? [y/N]"
+ read ans
+
+ if [ "${ans}" = "y" ];then
+ mv "${fx}" ~/.trash
+ echo "Trash complete!"
+ else
+ echo "Failed! Use y to trash."
+ fi
}}
diff --git a/config/vim/vimrc b/config/vim/vimrc
index cfb9931..b45fec2 100644
--- a/config/vim/vimrc
+++ b/config/vim/vimrc
@@ -6,6 +6,7 @@ set scrolloff=5 " Smooth scroll
set clipboard=unnamedplus " Use system clipboard
set shortmess+=I " Deactivate intro text
set fillchars=eob:\ " Remove "~" for empty lines (must end wit trailing a space)
+set nowrap " Disable wrapping
autocmd BufwritePost * %s/\s\+$//e " Remove useless trailing spaces when saving
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o " Disable autocomments