aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-05-05 22:00:43 -0400
committerMichael Reed <m.reed@mykolab.com>2015-05-18 11:06:54 -0400
commita16eab9e57368188c834634cd824ce1ac5613db1 (patch)
tree5fabe22f8185b16c00285827fb57eb1dbec6c566
parent64cecd917d8b8b7a428e61f1f75d4a9c769450de (diff)
downloadrneovim-a16eab9e57368188c834634cd824ce1ac5613db1.tar.gz
rneovim-a16eab9e57368188c834634cd824ce1ac5613db1.tar.bz2
rneovim-a16eab9e57368188c834634cd824ce1ac5613db1.zip
Remove `-T` command-line option
It didn't actually do anything after 3baba1e7bc6698e6bc9f1d37fce88b30d6274bc9 Helped-by: Justin M. Keyes <justinkz@gmail.com>
-rw-r--r--man/de/nvim-de.15
-rw-r--r--man/fr/nvim-fr.19
-rw-r--r--man/it/nvim-it.19
-rw-r--r--man/ja/nvim-ja.16
-rw-r--r--man/pl/nvim-pl.19
-rw-r--r--man/ru/nvim-ru.19
-rw-r--r--runtime/doc/quickref.txt1
-rw-r--r--runtime/doc/starting.txt9
-rw-r--r--runtime/doc/term.txt3
-rw-r--r--src/nvim/main.c12
10 files changed, 1 insertions, 71 deletions
diff --git a/man/de/nvim-de.1 b/man/de/nvim-de.1
index 50dd0ce7e6..2d56ff0bc0 100644
--- a/man/de/nvim-de.1
+++ b/man/de/nvim-de.1
@@ -236,11 +236,6 @@ Zeichen in ihr tippen. Dasselbe kann mit dem Befehl »:source!
{Eingabeskript}« erreicht werden. Wird das Ende der Datei vor dem Beenden
des Editors erreicht, werden weitere Zeichen von der Tastatur gelesen.
.TP
-\-T {Terminal}
-Setzt den Namen des benutzten Terminals. Nur erforderlich, wenn die
-Automatik nicht funktioniert. Sollte ein \fBVim\fP bekanntes Terminal sein:
-(builtin) oder in einer termcap\- oder terminfo\-Datei definiert.
-.TP
\-u {VimRC}
Verwendet zur Initialisierung die Befehle in der Datei {VimRC}. Alle anderen
Initialisierungen werden übersprungen. Benutzen Sie dies, um eine besondere
diff --git a/man/fr/nvim-fr.1 b/man/fr/nvim-fr.1
index a794a814dd..c2e6f25756 100644
--- a/man/fr/nvim-fr.1
+++ b/man/fr/nvim-fr.1
@@ -301,15 +301,6 @@ La commande ":source! {scriptEntrée}" donne le même résultat.
Si la fin du fichier est atteinte avant que l'éditeur quitte, les caractères
suivants sont lus depuis le clavier.
.TP
-\-T {terminal}
-Indique à
-.B Vim
-le nom du terminal utilisé.
-Cela n'est requis que lorsque la détection automatique échoue.
-Le {terminal} devrait être connu de
-.B Vim
-(intégré) ou défini dans le fichier termcap ou terminfo.
-.TP
\-u {vimrc}
Utilise les commandes du fichier {vimrc} pour les initialisations.
Toutes les autres initialisations sont omises.
diff --git a/man/it/nvim-it.1 b/man/it/nvim-it.1
index 1bee867e2a..e529ee511f 100644
--- a/man/it/nvim-it.1
+++ b/man/it/nvim-it.1
@@ -283,15 +283,6 @@ Lo stesso si può ottenere col comando ":source! {scriptin}".
Se la fine del file di input viene raggiunta prima che Vim termini,
l'ulteriore input viene preso dalla tastiera.
.TP
-\-T {terminale}
-Dice a
-.B Vim
-quale tipo di terminale state usando.
-Utile solo se il terminale non viene riconosciuto correttamente da Vim.
-Dovrebbe essere un terminale noto a
-.B Vim
-(internamente) o definito nel file termcap o terminfo.
-.TP
\-u {vimrc}
Usa i comandi nel file {vimrc} per inizializzazioni.
Tutte le altre inizializzazioni non sono eseguite.
diff --git a/man/ja/nvim-ja.1 b/man/ja/nvim-ja.1
index ad5f24d53a..bd94da5cc5 100644
--- a/man/ja/nvim-ja.1
+++ b/man/ja/nvim-ja.1
@@ -241,12 +241,6 @@ N を省略した場合は、引数のファイルを個別のタブページで
エディタが終了する前にファイルの終わりまで読み込んだ場合、
それ以降はキーボードから入力を読み込みます。
.TP
-\-T {terminal}
-端末の名前を指定します。
-端末が自動的に認識されない場合に使ってください。
-Vim が組み込みでサポートしている名前か、
-termcap または terminfo ファイルで定義されている名前を指定してください。
-.TP
\-u {vimrc}
{vimrc} ファイルを使って初期化します。
他の初期化処理はスキップされます。
diff --git a/man/pl/nvim-pl.1 b/man/pl/nvim-pl.1
index 0f4128d8bd..46a728b301 100644
--- a/man/pl/nvim-pl.1
+++ b/man/pl/nvim-pl.1
@@ -283,15 +283,6 @@ To samo można osiągnąć poprzez polecenie ":source! {skrypt}".
Jeśli osiągnięto koniec pliku zanim edytor zakończył działanie, dalsze
znaki odczytywane są z klawiatury.
.TP
-\-T {terminal}
-Przekazuje
-.B Vimowi
-nazwę terminalu jakiego używasz.
-Wymagane tylko wtedy jeśli nie działa automatycznie.
-Powinien być to terminal znany
-.B Vimowi
-(builtin) lub zdefiniowany w plikach termcap lub terminfo.
-.TP
\-u {vimrc}
Użyj poleceń z pliku {vimrc} w czasie uruchamiania.
Wszystkie inne możliwe pliki uruchamiania zostaną pominięte.
diff --git a/man/ru/nvim-ru.1 b/man/ru/nvim-ru.1
index 1d4221b3ab..3c9bf1a1a4 100644
--- a/man/ru/nvim-ru.1
+++ b/man/ru/nvim-ru.1
@@ -246,15 +246,6 @@ vim \- Vi IMproved (Улучшенный Vi), текстовый редакто
Если конец файла считывается до завершения работы редактора, то в дальнейшем
ввод осуществляется с клавиатуры.
.TP
-\-T {terminal}
-Сообщает
-.B Vim
-тип используемого терминала. Необходимо только в тех ситуациях, когда
-автоматическое определение терминала не работает. Имя терминала должно быть
-известно
-.B Vim
-(встроено в него) или определено в файлах termcap или terminfo.
-.TP
\-u {vimrc}
Использовать команды из файла сценария {vimrc} для настройки.
Все остальные файлы настроек пропускаются.
diff --git a/runtime/doc/quickref.txt b/runtime/doc/quickref.txt
index df6a2dffd4..92492f72e1 100644
--- a/runtime/doc/quickref.txt
+++ b/runtime/doc/quickref.txt
@@ -1134,7 +1134,6 @@ Context-sensitive completion on the command-line:
|-s| -s {scriptin} first read commands from the file {scriptin}
|-w| -w {scriptout} write typed chars to file {scriptout} (append)
|-W| -W {scriptout} write typed chars to file {scriptout} (overwrite)
-|-T| -T {terminal} set terminal name
|-u| -u {vimrc} read inits from {vimrc} instead of other inits
|-U| -U {gvimrc} idem, for when starting the GUI
|-i| -i {viminfo} read info from {viminfo} instead of other files
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt
index dad4c9b78c..3475a63307 100644
--- a/runtime/doc/starting.txt
+++ b/runtime/doc/starting.txt
@@ -309,13 +309,6 @@ argument.
'tabpagemax' pages (default 10). If there are more tab pages
than arguments, the last few tab pages will be editing an
empty file. Also see |tabpage|.
-
- *-T*
--T {terminal} Set the terminal type to "terminal". This influences the
- codes that Vim will send to your terminal. This is normally
- not needed, because Vim will be able to find out what type
- of terminal you are using. (See |terminal-info|.)
-
*-d*
-d Start in |diff-mode|.
@@ -772,7 +765,7 @@ To change it later, use a ":let" command like this: >
In case you need the value of $VIMRUNTIME in a shell (e.g., for a script that
greps in the help files) you might be able to use this: >
- VIMRUNTIME=`vim -e -T dumb --cmd 'exe "set t_cm=\<C-M>"|echo $VIMRUNTIME|quit' | tr -d '\015' `
+ VIMRUNTIME="$(nvim -e --cmd 'echo $VIMRUNTIME|quit' 2>&1)"
==============================================================================
5. Suspending *suspend*
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt
index 5c818f07fe..da3e1ac11e 100644
--- a/runtime/doc/term.txt
+++ b/runtime/doc/term.txt
@@ -27,9 +27,6 @@ NOTE: Most of this is not used when running the |GUI|.
When Vim is started a default terminal type is assumed. for MS-DOS this is
the pc terminal, for Unix an ansi terminal.
-You can give the terminal name with the '-T' Vim argument. If it is not given
-Vim will try to get the name from the TERM environment variable.
-
*termcap* *terminfo* *E557* *E558* *E559*
On Unix the terminfo database or termcap file is used. This is referred to as
"termcap" in all the documentation. At compile time, when running configure,
diff --git a/src/nvim/main.c b/src/nvim/main.c
index ce96d2a7bf..5f0372f30e 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -100,7 +100,6 @@ typedef struct {
bool headless; // Dont try to start an user interface
// or read/write to stdio(unless
// embedding)
- char_u *term; /* specified terminal name */
int no_swap_file; /* "-n" argument used */
int use_debug_break_level;
int window_count; /* number of windows to use */
@@ -1123,7 +1122,6 @@ static void command_line_scan(mparm_T *parmp)
/*FALLTHROUGH*/
case 'S': /* "-S {file}" execute Vim script */
case 'i': /* "-i {viminfo}" use for viminfo */
- case 'T': /* "-T {terminal}" terminal name */
case 'u': /* "-u {vimrc}" vim inits file */
case 'U': /* "-U {gvimrc}" gvim inits file */
case 'W': /* "-W {scriptout}" overwrite */
@@ -1221,15 +1219,6 @@ scripterror:
parmp->tagname = (char_u *)argv[0];
break;
- case 'T': /* "-T {terminal}" terminal name */
- /*
- * The -T term argument is always available and when
- * HAVE_TERMLIB is supported it overrides the environment
- * variable TERM.
- */
- parmp->term = (char_u *)argv[0];
- break;
-
case 'u': /* "-u {vimrc}" vim inits file */
parmp->use_vimrc = argv[0];
break;
@@ -2001,7 +1990,6 @@ static void usage(void)
mch_msg(_(" -n No swap file, use memory only\n"));
mch_msg(_(" -r, -L List swap files and exit\n"));
mch_msg(_(" -r <file> Recover crashed session\n"));
- mch_msg(_(" -T <terminal> Set terminal type to <terminal>\n"));
mch_msg(_(" -u <nvimrc> Use <nvimrc> instead of the default\n"));
mch_msg(_(" -i <nviminfo> Use <nviminfo> instead of the default\n"));
mch_msg(_(" --noplugin Don't load plugin scripts\n"));